<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>Document</title>
    <style>
        *{margin: 0;padding: 0}
      
        .nav{
        height: 60px;
        background-color:  gray;
        }
     
        .nav-wrap{
            position: relative;

            width: 1000px;
            margin-left: auto;
            margin-right: auto;
            text-align: center;
            line-height: 50px;
        }
        .left,.right{
            position: absolute;
            height: 50px;
            top: 0;
            font-size: 12px;
            display: inline-flex;

            /* align-items设置子元素垂直对齐的方式 */
            align-items: center;
        }
        .left{
            left: 0;
        }
        /* img{
            width: 19px;
            height: 19px;
        } */
        .right{
            right: 0;
        }
        .center a {
            font-size: 16px;
            text-decoration: none;
            color: #333;
            margin-left: 50px;
        }



    
    </style>
</head>
<body>
    <div class="nav">
        <div class="nav-wrap">
                <div class="left"><img src="images/location.png" alt="">
                    <span>深圳</span>
                    <span>&lt切换&gt</span></div>
                <div class="center"><a href="#">首页</a>
                    <a href="#">首页</a>
                    <a href="#">首页</a>
                    <a href="#">首页</a></div>
                <div class="right"><img src="images/adm.png" alt="">
                    <span>个人中心</span></div>
        </div>
    </div>
</body>
</html>